import Pagination from '@/components/Pagination'
import SelectTree from '@/components/SelectTree'
import SelectTreeMultiple from '@/components/SelectTreeMultiple'
import SelectTable from '@/components/SelectTable'
import SelectTableMultiple from '@/components/SelectTableMultiple'
import FilterForm from '@/components/FilterForm'
import BaseDialog from '@/components/Dialog'
import BaseTable from '@/components/Table'
import RoadInput from '@/components/RoadInput'

const components = [
  Pagination,
  FilterForm,
  BaseDialog,
  BaseTable,
  SelectTree,
  SelectTreeMultiple,
  SelectTable,
  SelectTableMultiple,
  RoadInput
]

function install(Vue) {
  components.forEach(component => {
    Vue.component(component.name, component)
  })
}

export default { install }
